<?php
define('IN_MEDIA',true);
include('../includes/config.php');
include('../includes/functions.php');
Header("content-type: application/x-javascript");
$id = $_GET['id'];
if(get_cookie("postid") !=$id) {
setcookie("postid", $id, time()+900);
echo $id;
if (isset($_COOKIE["postid"])) {
$mysql->query("UPDATE ".$tb_prefix."data SET m_viewed = m_viewed + 10, m_viewed_month = m_viewed_month + 10, m_viewed_week = m_viewed_week + 10, m_viewed_day = m_viewed_day + 10  WHERE m_id = '".$id."'");
 }
}
?>
